<?php
namespace Lmkj\Controller;
use Think\Controller;

/**
 * 显示首页控制器
 */
class IndexController extends CommonController {
	
	private $member ;
	
	public function __construct(){
		parent::__construct();
		$this->member = D('Member');
	}
	/**
	 * 显示页面
	 */
    public function index(){
    	$uid = $_SESSION['userName']->uid;
    	$member = $this->member->selectOneData($uid);
		$this->assign('member',$member);
		$this->assign('system',getOS()); //版本
		$this->display();
    }
	
	/**
	 * 欢迎页面
	 */
	public function welcome(){
		$uid = $_SESSION['userName']->uid;
    	$member = $this->member->selectOneData($uid);
		$this->assign('member',$member);
		$this->assign('system',getOS()); //版本
		$this->display();
	}

	
}